<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>主页 - 喝水小管家</title>
    <link href="https://cdn.jsdelivr.net/npm/tailwindcss@2.2.19/dist/tailwind.min.css" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8fafc;
        }
        .status-bar {
            background-color: #000;
            color: white;
            padding: 5px 15px;
            display: flex;
            justify-content: space-between;
            font-size: 12px;
        }
        .nav-bar {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            background-color: white;
            border-top: 1px solid #e2e8f0;
            display: flex;
            justify-content: space-around;
            padding: 10px 0;
            box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
        }
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            color: #64748b;
            font-size: 10px;
        }
        .nav-item.active {
            color: #3b82f6;
        }
        .nav-icon {
            font-size: 22px;
            margin-bottom: 3px;
        }
        .progress-ring {
            transform: rotate(-90deg);
            transform-origin: center;
        }
        .quick-action-btn {
            transition: all 0.2s;
        }
        .quick-action-btn:active {
            transform: scale(0.95);
        }
        .water-wave {
            position: absolute;
            width: 100%;
            bottom: 0;
            left: 0;
            height: 70%;
            background: linear-gradient(0deg, #3b82f6 0%, #93c5fd 100%);
            border-radius: 50% 50% 0 0 / 100% 100% 0 0;
            transform-origin: bottom;
            animation: wave 3s ease-in-out infinite alternate;
        }
        @keyframes wave {
            0% {
                transform: scaleY(1.0);
            }
            100% {
                transform: scaleY(1.03);
            }
        }
    </style>
</head>
<body>
    <!-- 状态栏 -->
    <div class="status-bar">
        <span>9:41</span>
        <div>
            <span class="mr-1"><i class="fas fa-signal"></i></span>
            <span class="mr-1"><i class="fas fa-wifi"></i></span>
            <span><i class="fas fa-battery-full"></i></span>
        </div>
    </div>

    <!-- 内容区域 -->
    <div class="px-4 pt-3 pb-20">
        <!-- 顶部问候 -->
        <div class="flex justify-between items-center">
            <div>
                <h2 class="text-xl font-bold text-gray-800">你好，小明</h2>
                <p class="text-sm text-gray-500">今天天气晴朗，别忘了多喝水哦</p>
            </div>
            <div class="w-12 h-12 rounded-full bg-cover bg-center" style="background-image: url('https://images.unsplash.com/photo-1535713875002-d1d0cf377fde?ixlib=rb-1.2.1&auto=format&fit=crop&w=100&q=80')"></div>
        </div>
        
        <!-- 主要喝水进度 -->
        <div class="mt-6 bg-white rounded-2xl shadow-sm p-5">
            <div class="flex justify-between items-center mb-2">
                <h3 class="text-lg font-semibold text-gray-800">今日饮水进度</h3>
                <span class="text-sm text-blue-500">70%</span>
            </div>
            
            <div class="relative h-60 flex items-center justify-center">
                <!-- 水波动画 -->
                <div class="relative w-48 h-48 rounded-full overflow-hidden border-4 border-blue-100">
                    <div class="water-wave"></div>
                    <div class="absolute inset-0 flex flex-col items-center justify-center text-white">
                        <span class="text-4xl font-bold">1.4L</span>
                        <span class="text-sm">目标 2.0L</span>
                    </div>
                </div>
            </div>
            
            <div class="flex justify-around mt-4">
                <div class="text-center">
                    <div class="text-3xl font-bold text-gray-800">7</div>
                    <div class="text-xs text-gray-500">今日次数</div>
                </div>
                <div class="text-center">
                    <div class="text-3xl font-bold text-blue-500">1.4L</div>
                    <div class="text-xs text-gray-500">今日总量</div>
                </div>
                <div class="text-center">
                    <div class="text-3xl font-bold text-gray-800">2.0L</div>
                    <div class="text-xs text-gray-500">今日目标</div>
                </div>
            </div>
        </div>
        
        <!-- 快速记录 -->
        <div class="mt-6">
            <h3 class="text-lg font-semibold text-gray-800 mb-3">快速记录</h3>
            <div class="grid grid-cols-4 gap-2">
                <div class="quick-action-btn bg-blue-50 rounded-xl p-3 flex flex-col items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mb-1">
                        <i class="fas fa-mug-hot text-blue-500"></i>
                    </div>
                    <span class="text-xs text-gray-700">200ml</span>
                </div>
                <div class="quick-action-btn bg-blue-50 rounded-xl p-3 flex flex-col items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mb-1">
                        <i class="fas fa-glass-water text-blue-500"></i>
                    </div>
                    <span class="text-xs text-gray-700">300ml</span>
                </div>
                <div class="quick-action-btn bg-blue-50 rounded-xl p-3 flex flex-col items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mb-1">
                        <i class="fas fa-wine-bottle text-blue-500"></i>
                    </div>
                    <span class="text-xs text-gray-700">500ml</span>
                </div>
                <div class="quick-action-btn bg-blue-50 rounded-xl p-3 flex flex-col items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mb-1">
                        <i class="fas fa-plus text-blue-500"></i>
                    </div>
                    <span class="text-xs text-gray-700">自定义</span>
                </div>
            </div>
        </div>
        
        <!-- 今日提醒 -->
        <div class="mt-6 bg-white rounded-2xl shadow-sm p-4">
            <div class="flex justify-between items-center mb-2">
                <h3 class="text-lg font-semibold text-gray-800">今日提醒</h3>
                <button class="text-sm text-blue-500">查看全部</button>
            </div>
            <div class="flex justify-between items-center py-3 border-b border-gray-100">
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                        <i class="fas fa-bell text-blue-500"></i>
                    </div>
                    <div>
                        <div class="text-sm font-medium text-gray-800">下午茶时间</div>
                        <div class="text-xs text-gray-500">15:30</div>
                    </div>
                </div>
                <label class="relative inline-flex items-center cursor-pointer">
                    <input type="checkbox" value="" class="sr-only peer" checked>
                    <div class="w-9 h-5 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-blue-500"></div>
                </label>
            </div>
            <div class="flex justify-between items-center py-3">
                <div class="flex items-center">
                    <div class="w-10 h-10 bg-blue-100 rounded-full flex items-center justify-center mr-3">
                        <i class="fas fa-bell text-blue-500"></i>
                    </div>
                    <div>
                        <div class="text-sm font-medium text-gray-800">晚餐时间</div>
                        <div class="text-xs text-gray-500">18:30</div>
                    </div>
                </div>
                <label class="relative inline-flex items-center cursor-pointer">
                    <input type="checkbox" value="" class="sr-only peer" checked>
                    <div class="w-9 h-5 bg-gray-200 peer-focus:outline-none rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-4 after:w-4 after:transition-all peer-checked:bg-blue-500"></div>
                </label>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="nav-bar">
        <div class="nav-item active">
            <div class="nav-icon"><i class="fas fa-home"></i></div>
            <span>首页</span>
        </div>
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-list"></i></div>
            <span>记录</span>
        </div>
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-chart-bar"></i></div>
            <span>统计</span>
        </div>
        <div class="nav-item">
            <div class="nav-icon"><i class="fas fa-user"></i></div>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 